home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -screenplay- / hd_installers / whdigames / whdigamesj-m / whdigamesj-m.lzh / LastActionHero.lha / LastActionHeroHD / Install-Game < prev    next >
Text File  |  1999-04-09  |  3KB  |  123 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #readme "lahero")            ; %shd.readme
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21. (message "\n\n\nThis loader requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31. (set #dest (tackon @default-dest @app-name))
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47. (set #Game_Ver
  48.     (askchoice
  49.         (prompt "Which version of the loader do you wish to install")
  50.         (help    @askoptions-help)
  51.         (choices
  52.            "JST"
  53.            "WHDLoad"
  54.         )
  55.     )
  56. )
  57.  
  58. (makedir #dest
  59.     (help @makedir-help)
  60.     (infos)
  61. )
  62.  
  63. ;----------------------------
  64. (makedir 
  65.   (tackon #dest "data")
  66.   (help @makedir-help)
  67. )
  68.  
  69. (if (= #Game_Ver 0)
  70. (copyfiles
  71.   (help @copyfiles-help)
  72.   (source ("JHD.inf"))
  73.   (newname ("%sHD.info" @app-name ))
  74.   (dest #dest)
  75. ))
  76. (if (= #Game_Ver 0)
  77. (copyfiles
  78.   (help @copyfiles-help)
  79.   (source ("HD"))
  80.   (newname ("%sHD" @app-name ))
  81.   (dest #dest)
  82. ))
  83. (if (= #Game_Ver 1)
  84. (copyfiles
  85.   (help @copyfiles-help)
  86.   (source ("WHD.inf"))
  87.   (newname ("%sHD.info" @app-name ))
  88.   (dest #dest)
  89. ))
  90. (if (= #Game_Ver 1)
  91. (copyfiles
  92.   (help @copyfiles-help)
  93.   (source ("HD.slave" ))
  94.   (newname ("%sHD.slave" @app-name ))
  95.   (dest #dest)
  96. ))
  97. (copyfiles
  98.   (help @copyfiles-help)
  99.   (source ("%shd.readme" #readme))
  100.   (dest #dest)
  101. )
  102. (copyfiles
  103.   (help @copyfiles-help)
  104.   (source ("%shd.readme.info" #readme))
  105.   (dest #dest)
  106. )
  107. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  108.     (if
  109.         (= 0 (run ("copy df%ld: to \"%s/data\" all " #CI_unit #dest )))
  110.         ("")
  111.         (abort "\"\" must be in your PATH !")
  112.     )
  113. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  114.     (if
  115.         (= 0 (run ("copy df%ld: to \"%s/data\" all " #CI_unit #dest )))
  116.         ("")
  117.         (abort "\"\" must be in your PATH !")
  118.     )
  119.  
  120.  
  121. (exit)
  122.  
  123.